{literal}
<script type="text/javascript">
<!--
function confirmDelete(articleId) {
if (confirm("This will delete the word. Continue?"))
document.location = "admin.php?page=censor&action=delete&id=" + articleId;
}

function addWord()
{
    word = prompt("Enter in the new word. Wildcards (* and ?) are allowed:");{/literal}
    document.location = "{$pagename}&action=add&word=" + word;{literal}
}
//-->
</script>
{/literal}
{if $numwords > 0}
<h2>Censor Words</h2>
<div align="left"><input type="button" class="button" value="Add Word" onclick="addWord();" /></div>
<table width="40%" border="0" cellspacing="1" cellpadding="4" align="center" class="table">
  <tr valign="top"> 
    <th width="20%" class="smallhead">Action</th>
    <th width="80%" class="smallhead">Word</th>
  </tr>
 {section name=wordloop loop=$numwords}
	  <tr valign="middle"> 
		<td class="text"><a href="javascript:confirmDelete({$words[wordloop].id})"><img src="{$tempdir}admin/images/delete.gif" border="0" alt="Delete" title="Delete" /></a></td>
		<td class="text">{$words[wordloop].word}</td>
	  </tr>  
	{/section}
</table>
{else}
<div align="center">No censor words</div>
{/if}
<div align="left"><input type="button" class="button" value="Add Word" onclick="addWord();" /></div>
<div align="center">
 <a href="http://www.cmscout.za.net/index.php?page=subsite&amp;site=Manual&amp;content=adminpanel-wordcensor" target="_blank">Help</a>
</div>
